import {createRouter, createWebHistory} from "vue-router";

const routes= [
  {
    path: '/',
    name: 'home',
    component: () => import('../views/HomePage.vue'),
  },
  {
    path: '/user/login',
    name: 'userLogin',
    component: () => import('../views/user/UserLoginPage.vue'),
  },
  {
    path: '/user/register',
    name: 'register',
    component: () => import('../views/user/UserRegisterPage.vue'),
  },
  {
    path: '/admin/userManage',
    name: 'userManage',
    component: () => import('../views/admin/UserManagePage.vue'),
  },
]

const router =createRouter({
  history: createWebHistory(),
  routes,
})
export default router
